﻿using MediatR;
using RearLivestock.Common.Dtos;
using System.ComponentModel.DataAnnotations;

namespace RearLivestock.Beginning.Api.Application.Command.PigWeighings
{
    /// <summary>
    /// 猪只体重添加Command
    /// </summary>
    public class AddPigsWeighingCommand:IRequest<Result>
    {
        /// <summary>
        /// 称重ID
        /// </summary>
        public int PigsWeighingId { get; set; }
        /// <summary>
        /// 称重日期
        /// </summary>
        public DateTime WeighingDate { get; set; }
        /// <summary>
        /// 称重类型ID
        /// </summary>
        public int WeighingTypeId { get; set; }
        /// <summary>
        /// 耳号
        /// </summary>
        public string EarNumber { get; set; } = string.Empty;
        /// <summary>
        /// 重量
        /// </summary>
        public decimal PigWeight { get; set; }
    }
}
